<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>视距-perspective</title>
    <style>
        .father{
            /* 指定了观察者与 Z=0 平面的距离，可实现近大远小的效果 建议取值800~1000px */
            perspective: 1000px;
        }
        .son {
            width: 200px;
            height: 200px;
            background-color: #f96b6b;
            margin: 200px auto;
            transition: all 0.5s;
        }
        .son:hover {
            transform: translateZ(200px);
        }
    </style>
</head>
<body>
<div class="father">
    <div class="son"></div>
</div>
</body>
</html>
